#include "node.h"

Node::Node(const uint32 id) : id_(id), isActive_(true), positionX_(0), positionY_(0), position_(Ogre::Vector2::ZERO)
{

}

Node::~Node()
{

}

const uint32 Node::getID()
{
	return id_;
}

bool Node::isActive()
{
	return isActive_;
}

void Node::setActive(bool isActive)
{
	isActive_ = isActive;
}

//void Node::setPosition(const double posX, const double posY)
//{
//	positionX_ = posX;
//	positionY_ = posY;
//}

double Node::getPositionX() const
{
	return positionX_;
}

double Node::getPositionY() const
{
	return positionY_;
}

void Node::setPosition(const float& posX, const float& posY)
{
	position_.x = posX;
	position_.y = posY;
}

const Ogre::Vector2& Node::getPosition()
{
	return position_;
}